<script>
  export default function () {
    // 药品类型
    const medicinalTypes = [
      { label: '处方药', value: 1 },
      { label: '非处方药', value: 0 },
    ]
    // 适用人群
    const fitPeople = [
      { label: '不限', value: '不限' },
      { label: '新生儿(0-6个月)', value: '新生儿(0-6个月)' },
      { label: '婴幼儿(6个月-2岁)', value: '婴幼儿(6个月-2岁)' },
      { label: '低龄儿童(3-5岁)', value: '低龄儿童(3-5岁)' },
      { label: '儿童(6-14岁)', value: '儿童(6-14岁)' },
      { label: '成人', value: '成人' },
      { label: '孕妇/哺乳期', value: '孕妇/哺乳期' },
      { label: '老年患者', value: '老年患者' },
    ]

    // 药品性质
    const medicinalAttrs = [
      { label: '西药', value: '西药' },
      { label: '中成药', value: '中成药' },
      { label: '中药', value: '中药' },
    ]

    // 药品剂型
    const dosageForms = [
      {
        value: '经胃肠道给药剂型',
        label: '经胃肠道给药剂型',
        children: [
          {
            value: '散剂',
            label: '散剂',
          },
          {
            value: '片剂',
            label: '片剂',
          },
          {
            value: '颗粒剂',
            label: '颗粒剂',
          },
          {
            value: '胶囊剂',
            label: '胶囊剂',
          },
          {
            value: '溶液剂',
            label: '溶液剂',
          },
          {
            value: '乳剂',
            label: '乳剂',
          },
          {
            value: '混悬剂',
            label: '混悬剂',
          },
        ],
      },
      {
        value: '非经胃肠道给药剂型',
        label: '非经胃肠道给药剂型',
        children: [
          {
            value: '注射给药剂型',
            label: '注射给药剂型',
            children: [{ value: '注射剂', label: '注射剂' }],
          },
          {
            value: '呼吸道给药剂型',
            label: '呼吸道给药剂型',
            children: [
              { value: '喷雾剂', label: '喷雾剂' },
              { value: '气雾剂', label: '气雾剂' },
              { value: '粉雾剂', label: '粉雾剂' },
            ],
          },
          {
            value: '皮肤给药剂型',
            label: '皮肤给药剂型',
            children: [
              { value: '外用溶液剂', label: '外用溶液剂' },
              { value: '洗剂', label: '洗剂' },
              { value: '搽剂', label: '搽剂' },
              { value: '软膏剂', label: '软膏剂' },
              { value: '硬膏剂', label: '硬膏剂' },
              { value: '糊剂', label: '糊剂' },
              { value: '贴剂', label: '贴剂' },
            ],
          },
          {
            value: '粘膜给药剂型',
            label: '粘膜给药剂型',
            children: [
              { value: '滴眼剂', label: '滴眼剂' },
              { value: '滴鼻剂', label: '滴鼻剂' },
              { value: '眼用软膏剂', label: '眼用软膏剂' },
              { value: '含漱剂', label: '含漱剂' },
              { value: '舌下片剂', label: '舌下片剂' },
              { value: '粘贴片', label: '粘贴片' },
              { value: '贴膜剂', label: '贴膜剂' },
            ],
          },
          {
            value: '腔道给药剂型',
            label: '腔道给药剂型',
            children: [
              { value: '栓剂', label: '栓剂' },
              { value: '气雾剂', label: '气雾剂' },
              { value: '泡腾片', label: '泡腾片' },
              { value: '滴剂', label: '滴剂' },
              { value: '滴丸剂', label: '滴丸剂' },
            ],
          },
        ],
      },
    ]

    // 器械适用人群
    const deviceFitPeople = [
      { value: '不区分年龄', label: '不区分年龄' },
      { value: '幼儿(0~6)岁', label: '幼儿(0~6)岁' },
      { value: '儿童(6~14)岁', label: '儿童(6~14)岁' },
      { value: '成人(≥14)', label: '成人(≥14)' },
    ]

    // 器械分类
    const deviceClassification = [
      { value: 'Ⅰ类器械', label: 'Ⅰ类器械' },
      { value: 'Ⅱ类器械', label: 'Ⅱ类器械' },
      { value: 'Ⅲ类器械', label: 'Ⅲ类器械' },
    ]
    return {
      fitPeople,
      medicinalAttrs,
      dosageForms,
      medicinalTypes,
      deviceFitPeople,
      deviceClassification,
    }
  }
</script>
